
  <div class="layui-form" lay-filter="layuiadmin-comment-list" id="layuiadmin-comment-list"style="padding: 20px 30px 0 0;">
  <form class="layui-form" lay-filter="add-goods-form">
    <blockquote class="layui-elem-quote">添加评价的商品</blockquote>
    <div class="layui-form-item">
      <ul class="info-msg">
      	<li class="info-msg-l">
      		<img id="image" src=""/>
      	</li>
      	<li class="info-msg-r">
      		<p>书名：<span id="title"></span></p>
      		<p>作者：<span id="author"></span></p>
      		<p>ISBN：<span id="ISBN"></span></p>
      	</li>
      </ul>
    </div>
    <blockquote class="layui-elem-quote">添加评论</blockquote>
    <div class="layui-form-item">
      <label class="layui-form-label">选择用户：</label>
      <div class="layui-input-inline" style="width: 70%;">
      	<img id="avatar" src="" alt="" style="width: 40px;height: 40px;border-radius: 50%;float: left;margin-right: 10px;" />
        <input style="width: 200px;float: left;margin-right: 20px;" name="user_nickname" id="user_nickname" required lay-verify="required" placeholder="" autocomplete="off" class="layui-input">
        <input type="hidden" name="user_id" id="user_id" placeholder="" autocomplete="off" class="layui-input">
        <input type="hidden" name="user_avatar" id="avatar1" placeholder="" autocomplete="off" class="layui-input">
        <button style="float: left;" class="layui-btn" id="random">换一个用户</button>
      </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">选择评分：</label>
      <div class="layui-input-inline">
       <select name="score" lay-verify="">
          <option value="">请选择评分</option>
          <option value="1">1分</option>
          <option value="2">2分</option>
          <option value="3">3分</option>
          <option value="4">4分</option>
          <option value="5">5分</option>
          <option value="6">6分</option>
          <option value="7">7分</option>
          <option value="8">8分</option>
          <option value="9">9分</option>
          <option value="10">10分</option>
        </select>
        <span>评分从1-10，这个评分是留以后用的，前端页面用不着</span>
      </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">写评论：</label>
      <div class="layui-input-inline" style="width: 70%;">
        <textarea name="content" id="content" lay-verify="required" placeholder="请输入内容" class="layui-textarea"></textarea>
      </div>
        <div class="layui-form-mid layui-word-aux"></div>
    </div>
    <div class="layui-form-item" style="text-align: center">
        <div class="layui-input-block">
          <button class="layui-btn" lay-submit lay-filter="formDemo">保存这条评论</button>
        </div>
    </div>
  </form>
  <script type="text/html" id="LAY-good-list-table-stock19">
		<img src="{{d.user_avatar}}" alt="" style="width:40px; height: 40px;border-radius: 50%;">
	</script>
  <script type="text/html" id="LAY-good-list-table-edit1">
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  </script>
   <table id="LAY-good-comment" lay-filter="LAY-good-comment"></table>
  </div>
  <style>
    .layui-form-label {text-align: center; width: 170px;}
    .info-msg{width: 94%;height: 100px;clear: both;margin: 0 auto;}
    .info-msg li{float: left;}
    .info-msg .info-msg-l{width: 100px;height: 100px;margin-right: 20px;}
    .info-msg .info-msg-l img{width: 82px;height: 110px;display: block;}
    .info-msg .info-msg-r{width: 300px;}
    .info-msg .info-msg-r p{line-height: 30px;}
</style>
